package com.quarkus.spring.web.controller;

import com.quarkus.spring.web.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.inject.Inject;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @Inject
    private UserService userService;

    @GetMapping("/list")
    public List findList(){
        return userService.getList();
    }
}
